package com.csvw.skr.basic.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * Created by Administrator on 2016/11/20.
 */
@Entity
@Table(name = "csvw_skr_basic_dealer")
public class Dealer {
    /**
     * 经销商代码
     */
    @Id
    @Column(name = "pk_code", length = 20, nullable = false)
    private String code;

    /**
     * 经销商售后代码
     */
    @Column(length = 20)
    private String afterSalesCode;

    /**
     * 经销商名称
     */
    @Column(name = "name", length = 50)
    private String name;

    /**
     * 经销商简称
     */
    @Column(name = "shorter", length = 20)
    private String shorter;

    /**
     * 所属大区编号
     */
    @Column(length = 20)
    private String rbo;

    /**
     * 所属商务处编号
     */
    @Column(length = 20)
    private String commercial;

    /**
     * 所属小区编号
     */
    @Column(length = 20)
    private String area;

    /**
     * 省
     */
    @Column(length = 20)
    private String province;


    /**
     * 城市
     */
    @Column(length = 20)
    private String city;


    /**
     * 区县
     */
    @Column(length = 20)
    private String county;

    /**
     * 地址
     */
    @Column(length = 200)
    private String address;

    /**
     * 联系人
     */
    @Column(length = 20)
    private String contract;

    /**
     * 联系电话
     */
    @Column(length = 20)
    private String contractPhone;

    /**
     * 数据是否有效
     */
    @Column(nullable=false, columnDefinition="bit default 1")
    private boolean active;

    /**
     * 数据创建时间
     */
    private Date created;

    /**
     * 数据更新时间
     */
    private Date updated;

    /**
     * 省id
     */
    private int provinceId;

    /**
     * 市id
     */
    private int cityId;

    /**
     * 商务经理
     */
    // TODO 经销商和商务经理
    /*
    @Column(length = 20)
    private String businessManager;
    */

    /**
     * 重点城市经销商
     */
    @Column(nullable=false, columnDefinition="bit default 0")
    private boolean emphasis;

    /**
     * 市场经理
     */
    @Column(length = 50)
    private String marketingManager;

    /*
    public String getBusinessManager() {
        return businessManager;
    }

    public void setBusinessManager(String businessManager) {
        this.businessManager = businessManager;
    }
    */

    public int getProvinceId() {
        return provinceId;
    }

    public void setProvinceId(int provinceId) {
        this.provinceId = provinceId;
    }

    public int getCityId() {
        return cityId;
    }

    public void setCityId(int cityId) {
        this.cityId = cityId;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getAfterSalesCode() {
        return afterSalesCode;
    }

    public void setAfterSalesCode(String afterSalesCode) {
        this.afterSalesCode = afterSalesCode;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getShorter() {
        return shorter;
    }

    public void setShorter(String shorter) {
        this.shorter = shorter;
    }

    public String getRbo() {
        return rbo;
    }

    public void setRbo(String rbo) {
        this.rbo = rbo;
    }

    public String getCommercial() {
        return commercial;
    }

    public void setCommercial(String commercial) {
        this.commercial = commercial;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getCounty() {
        return county;
    }

    public void setCounty(String county) {
        this.county = county;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getContract() {
        return contract;
    }

    public void setContract(String contract) {
        this.contract = contract;
    }

    public String getContractPhone() {
        return contractPhone;
    }

    public void setContractPhone(String contractPhone) {
        this.contractPhone = contractPhone;
    }

    public boolean isActive() {
        return active;
    }

    public void setActive(boolean active) {
        this.active = active;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getUpdated() {
        return updated;
    }

    public void setUpdated(Date updated) {
        this.updated = updated;
    }

    public boolean isEmphasis() {
        return emphasis;
    }

    public void setEmphasis(boolean emphasis) {
        this.emphasis = emphasis;
    }

    public String getMarketingManager() {
        return marketingManager;
    }

    public void setMarketingManager(String marketingManager) {
        this.marketingManager = marketingManager;
    }
}
